package com.feng.zhihao.apigeteway.exception;

public enum ExceptionMessage {
	PARAMS_IO_EXCEPTION("100001","参数解析失败，无法读取请求流")
	,PARAMS_VALIDATOR_EXCEPTION("100004","参数校验失败:{}")
	
	,PROJECT_SHUT_DOWN("110001","项目关闭")
	
	,INTERFACE_NOT_FOUND("120001","接口未找到:({})")
	

	,PARAMS_OGNL_EXCEPTION("130001","参数值获取失败，参数名:({}),ognl:({})")
	,PARAMS_SET_OGNL_EXCEPTION("130002","参数值设置失败，参数名:({}),ognl:({})")

	,GENERATION_RULE_OGNL_EXCEPTION("140001","参数生成出错，参数名:({}),ognl:({}),规则ID:({})")
	,GENERATION_RULE_JS_EXCEPTION("140001","参数生成出错，参数名:({}),JS:({}),规则ID:({})")

	,CHANNEL_NOT_FIND("150001","渠道未发现:({})")
	,CHANNEL_HAVE_NO_RIGHT("150002","渠道无权调用项目接口:({}),({})")
	;
	private String code;
	private String message;
	private ExceptionMessage(String code, String message) {
		this.code = code;
		this.message = message;
	}
	public String getCode() {
		return code;
	}
	public String getMessage() {
		return message;
	}
	
}
